diff options
Diffstat (limited to 'common/core/CMakeLists.txt')
-rw-r--r-- | common/core/CMakeLists.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/common/core/CMakeLists.txt b/common/core/CMakeLists.txt new file mode 100644 index 00000000..7e58acc0 --- /dev/null +++ b/common/core/CMakeLists.txt @@ -0,0 +1,32 @@ +add_library(core STATIC + Configuration.cxx + Exception.cxx + Logger.cxx + Logger_file.cxx + Logger_stdio.cxx + LogWriter.cxx + Region.cxx + Timer.cxx + string.cxx + time.cxx + xdgdirs.cxx) + +target_include_directories(core PUBLIC ${CMAKE_SOURCE_DIR}/common) +target_include_directories(core SYSTEM PUBLIC ${PIXMAN_INCLUDE_DIRS}) +target_link_libraries(core ${PIXMAN_LIBRARIES}) + +if(UNIX) + target_sources(core PRIVATE Logger_syslog.cxx) +endif() + +if(WIN32) + target_link_libraries(core ws2_32) +endif() + +if(UNIX) + target_sources(core PRIVATE Logger_syslog.cxx) +endif() + +if(UNIX) + libtool_create_control_file(core) +endif() |