Update CMakeLists.txt
Windows
This commit is contained in:
@@ -8,7 +8,14 @@ file(GLOB_RECURSE SOURCES "src/*.cpp")
|
|||||||
|
|
||||||
include_directories("include")
|
include_directories("include")
|
||||||
|
|
||||||
add_library(uuid SHARED ${SOURCES} ${HEADERS})
|
if (UNIX AND NOT APPLE)
|
||||||
|
add_library(uuid SHARED ${SOURCES} ${HEADERS})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
add_library(uuid STATIC ${SOURCES} ${HEADERS})
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(uuidtest main.cpp)
|
add_executable(uuidtest main.cpp)
|
||||||
set_target_properties(uuid PROPERTIES LINKER_LANGUAGE CXX)
|
set_target_properties(uuid PROPERTIES LINKER_LANGUAGE CXX)
|
||||||
target_link_libraries(uuidtest PUBLIC uuid)
|
target_link_libraries(uuidtest PUBLIC uuid)
|
Reference in New Issue
Block a user