From cb7af3f4cac90f95926477b4001f9f80037568d5 Mon Sep 17 00:00:00 2001 From: Jun Zhang Date: Sun, 30 Jan 2022 12:30:02 +0800 Subject: refactor: adjust the project infra. (#1) * refactor: adjust the project infra. This patch adds cmake build system to the project, and adjust infrastructure stuff. Signed-off-by: Jun Zhang * fix: remove compiler flags that only exist in GCC. Signed-off-by: Jun Zhang --- src/CMakeLists.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/CMakeLists.txt (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..7e71ff2 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,24 @@ +SET(SOURCES + bitmap.cpp + level.cpp + main.cpp + train.cpp + window.cpp +) + +add_executable( + Nonortho + ${SOURCES} +) + +target_include_directories( + Nonortho + PUBLIC + ${PROJECT_SOURCE_DIR}/include +) + +target_link_libraries( + Nonortho + PRIVATE + SDL2::SDL2 +) -- cgit v1.2.3