diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-01 15:25:41 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-01 15:25:41 -0500 |
commit | 1fbabc6c747205e62cd1dff3771bd319a935438f (patch) | |
tree | 8c079c9fe0f909be8429ab010ed75853bd3429d0 /swaygrab/CMakeLists.txt | |
parent | ef9258bd665ff6a47693ec252bc4d7c8c04c5dee (diff) | |
parent | 55b3532fe05333837de8d1041195551e724c9a40 (diff) |
Merge pull request #285 from christophgysin/cmake
cmake configuration cleanup
Diffstat (limited to 'swaygrab/CMakeLists.txt')
-rw-r--r-- | swaygrab/CMakeLists.txt | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/swaygrab/CMakeLists.txt b/swaygrab/CMakeLists.txt index 8bc8ed8b..efe8986b 100644 --- a/swaygrab/CMakeLists.txt +++ b/swaygrab/CMakeLists.txt @@ -1,18 +1,20 @@ project(swaygrab) -set(CMAKE_CURRENT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/../bin/) - -FILE(GLOB sources ${PROJECT_SOURCE_DIR}/*.c) -FILE(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c) +file(GLOB sources ${PROJECT_SOURCE_DIR}/*.c) +file(GLOB common ${PROJECT_SOURCE_DIR}/../common/*.c) add_executable(swaygrab - ${sources} - ${common} + ${sources} + ${common} ) -TARGET_LINK_LIBRARIES(swaygrab rt) +target_link_libraries(swaygrab + rt +) install( - TARGETS swaygrab - RUNTIME DESTINATION bin - COMPONENT runtime) + TARGETS swaygrab + RUNTIME + DESTINATION bin + COMPONENT runtime +) |