updated the cmake file
This commit is contained in:
parent
54b53d198a
commit
9d78ae637e
@ -1,22 +1,12 @@
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 3.12)
|
||||
|
||||
# Set the project name
|
||||
PROJECT(synf)
|
||||
PROJECT(synf-core)
|
||||
|
||||
# Find curl package
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
# add the executable
|
||||
ADD_EXECUTABLE(main
|
||||
|
||||
source/main.c
|
||||
source/lib.c
|
||||
)
|
||||
|
||||
TARGET_LINK_LIBRARIES(main PRIVATE CURL::libcurl)
|
||||
ADD_EXECUTABLE(source/main.c source/lib.c)
|
||||
TARGET_INCLUDE_DIRECTORIES(main PRIVATE source/lib/osx source/lib/linux)
|
||||
source/main.c
|
||||
source/lib.c
|
||||
)
|
||||
|
||||
target_include_directories(main PRIVATE source/lib/osx)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user