diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-04-12 23:26:29 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-04-12 23:26:29 +0300 |
commit | ef16959b92ff9bd6a88e21536e48f9946170d4a2 (patch) | |
tree | 28fad2de3fd640154eb4d674b9050abbdd8d02d9 /CMakeLists.txt | |
parent | 79198975e079affe281fcbfe4a2c47dfcc8e3817 (diff) | |
download | ck-ef16959b92ff9bd6a88e21536e48f9946170d4a2.tar.gz ck-ef16959b92ff9bd6a88e21536e48f9946170d4a2.tar.bz2 ck-ef16959b92ff9bd6a88e21536e48f9946170d4a2.zip |
Initial
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..37c6fd0 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,28 @@ +cmake_minimum_required (VERSION 3.5.6) +project(ck C) + +# Set project directories +set(PROJECT_SOURCE_DIR ./src) +# Set source code locations +set(ckBin_src ${PROJECT_SOURCE_DIR}/main.c) +set(ckLib_src + ${PROJECT_SOURCE_DIR}/main.c +) +set(ckLib_hdr +# ${PROJECT_SOURCE_DIR}/tui.hpp +) + +# Include directories +include_directories(${PROJECT_SOURCE_DIR}) +include_directories(${PROJECT_BINARY_DIR}) +include_directories(${CMAKE_BINARY_DIR}) + +# Create the shared library +add_library (ckLib SHARED + ${ckLib_src} + ${ckLib_hdr} +) + +# Link +add_executable(ck ${ckBin_src}) +target_link_libraries (ck ckLib) |