summaryrefslogtreecommitdiff
path: root/cmake/core.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/core.cmake')
-rw-r--r--cmake/core.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/core.cmake b/cmake/core.cmake
new file mode 100644
index 0000000000..7c8677d4e1
--- /dev/null
+++ b/cmake/core.cmake
@@ -0,0 +1,8 @@
+include_directories(.)
+file(GLOB SOURCES "src/*.h" "src/*.cpp" "res/*.rc")
+add_library(${TARGET} SHARED ${SOURCES})
+set_target_properties(${TARGET} PROPERTIES
+ LINK_FLAGS "/SUBSYSTEM:WINDOWS"
+ RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/$<CONFIG>/Core"
+)
+target_link_libraries(${TARGET} ${COMMON_LIBS}) \ No newline at end of file