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

44 lines
1.3 KiB
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
2022-10-03 07:12:38 +00:00
file_utilities/Directory.h
2020-07-04 18:43:08 +00:00
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
2022-08-01 15:14:14 +00:00
data_structures/Tree.cpp
2020-05-02 07:31:03 +00:00
loggers/FileLogger.cpp
2022-10-03 07:12:38 +00:00
file_utilities/Directory.cpp
2020-05-09 14:29:45 +00:00
file_utilities/File.cpp
file_utilities/FileFormats.cpp
2022-05-18 07:42:44 +00:00
memory/SharedMemory.cpp
RandomUtils.cpp
2020-05-03 06:56:27 +00:00
StringUtils.cpp
2022-07-31 19:01:13 +00:00
streams/BinaryStream.cpp
2022-05-18 07:42:44 +00:00
http/HttpResponse.cpp
http/HttpHeader.cpp
http/HttpRequest.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"
2022-05-18 07:42:44 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/memory"
2022-07-31 19:01:13 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/streams"
2022-08-01 15:14:14 +00:00
"${CMAKE_CURRENT_SOURCE_DIR}/data_structures"
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)