Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
Add option to skip python bindings and test server
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbuurlage committed Nov 9, 2018
1 parent a426ff9 commit fbf9a48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ include(FindPkgConfig)

project(tomopackets)

option(TOMOP_LIB_ONLY "Do not build python bindings")

include_directories(
"include"
)
Expand Down Expand Up @@ -67,6 +69,7 @@ set(
"Boost::boost"
)

if (NOT TOMOP_LIB_ONLY)
add_executable(${EXEC_NAME} ${SOURCE_NAMES})
target_link_libraries(${EXEC_NAME} ${LIB_NAMES})
target_compile_options(${EXEC_NAME} PRIVATE ${CXX_FLAGS})
Expand All @@ -79,6 +82,7 @@ set(BINDING_SOURCES "tomop/module.cpp")
pybind11_add_module(${BINDING_NAME} ${BINDING_SOURCES})
target_link_libraries(${BINDING_NAME} PRIVATE ${LIB_NAMES})
target_compile_options(${BINDING_NAME} PRIVATE ${CXX_FLAGS})
endif()

add_library(tomop INTERFACE)
target_include_directories(tomop INTERFACE "include")
Expand Down

0 comments on commit fbf9a48

Please sign in to comment.