stuff-from-scratch/src/core/CMakeLists.txt

35 lines
998 B
CMake
Raw Normal View History

2020-07-04 18:43:08 +00:00
list(APPEND core_HEADERS
2021-10-31 13:04:48 +00:00
AbstractApp.h
2022-01-01 18:46:31 +00:00
Dictionary.h
2020-07-04 18:43:08 +00:00
Event.h
Color.h
CommandLineArgs.h
loggers/FileLogger.h
file_utilities/BinaryFile.h
file_utilities/File.h
file_utilities/FileFormats.h
StringUtils.h
http/HttpResponse.h)
2020-05-02 07:31:03 +00:00
list(APPEND core_LIB_INCLUDES
Event.cpp
2022-01-01 18:46:31 +00:00
Dictionary.cpp
2020-05-02 07:31:03 +00:00
Color.cpp
CommandLineArgs.cpp
loggers/FileLogger.cpp
2020-05-03 15:28:50 +00:00
file_utilities/BinaryFile.cpp
2020-05-09 14:29:45 +00:00
file_utilities/File.cpp
file_utilities/FileFormats.cpp
2020-05-03 06:56:27 +00:00
StringUtils.cpp
http/HttpResponse.cpp)
2020-05-02 07:31:03 +00:00
# add the executable
2020-07-04 18:43:08 +00:00
add_library(core SHARED ${core_LIB_INCLUDES} ${core_HEADERS})
2020-05-02 07:31:03 +00:00
target_include_directories(core PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
2020-05-09 14:29:45 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/file_utilities"
"${CMAKE_CURRENT_SOURCE_DIR}/loggers"
2020-07-04 18:43:08 +00:00
)
set_target_properties( core PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
set_property(TARGET core PROPERTY FOLDER src)