I am quite new to this CMake.
I need to use APR from Apache 2 and I have a problem with this build system. The Apache 2 web server is installed under the C:\Apache24 folder, the APR related include files are located under C:\Apache24\include and the libraries under the C:\Apache24\lib folder.
cmake_minimum_required(VERSION 3.15)
project(json C)
set(CMAKE_C_STANDARD 90)
include_directories(
C:\Apache24\include
)
link_directories(
C:\Apache24\lib
)
target_link_libraries(
json apr-1.lib
)
add_executable(larak larak.h larak.c main.c)
By build I get this error:
Cannot specify link libraries for target "larak" which is not built by this project.
I've already read a lot of similar posts but most all of them are for Linux/Unix systems, not for Windows and not for APR/Apache.