diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf4279e..b22b369 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,14 +24,14 @@ if (KALMIA_BUILD_TESTS) endif() endif() -# if (KALMIA_BUILD_EXAMPLE) -# add_executable(kalmia-example) -# target_link_libraries(kalmia-example kalmia) -# if (UNIX) -# target_link_libraries(kalmia-example m) -# endif() -# add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/example) -# endif() +if (KALMIA_BUILD_EXAMPLE) + add_executable(kalmia-example) + target_link_libraries(kalmia-example kalmia) + if (UNIX) + target_link_libraries(kalmia-example m) + endif() + add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/example) +endif() add_subdirectory(src) add_subdirectory(3rdparty/ezxml) |