CMakeLists.txt (600B)
1 cmake_minimum_required(VERSION 3.10) 2 project(baseLib) 3 4 add_library(baseLib STATIC) 5 6 set(SOURCES 7 binarystream.cpp binarystream.h 8 commandline.cpp commandline.h 9 configFile.cpp configFile.h 10 event.cpp event.h 11 filesystem.cpp filesystem.h 12 hybridcontainer.h 13 md5.cpp md5.h 14 propertyMap.cpp propertyMap.h 15 semaphore.h 16 ) 17 18 target_sources(baseLib PRIVATE ${SOURCES}) 19 source_group("source" FILES ${SOURCES}) 20 21 if(NOT MSVC) 22 target_link_libraries(baseLib PUBLIC dl) 23 endif() 24 25 set_property(TARGET baseLib PROPERTY FOLDER "Gearmulator") 26 27 target_include_directories(baseLib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)