From 9399ff045d40a72c8ec90db3d07d1877ee2b3be3 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 14 Feb 2019 20:48:20 +0100 Subject: Switched from standard makefile to cmake --- src/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 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..f885850 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,9 @@ +include_directories("${bastion_SOURCE_DIR}/termrec/libtty/") + +file(GLOB_RECURSE SOURCES *.c) + +add_executable(bastion ${SOURCES}) +add_library(libtty.a STATIC IMPORTED) +set_property(TARGET libtty.a PROPERTY IMPORTED_LOCATION "${bastion_SOURCE_DIR}/libtty.a") +target_link_libraries(bastion libtty.a) +target_link_libraries(bastion bz2 curl lzma mysqlclient pthread ssh z) -- cgit v1.2.3