mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-18 08:55:55 +00:00
Fix debug conan build target
This commit is contained in:
@@ -15,7 +15,6 @@ find_package(Torch CONFIG REQUIRED)
|
||||
# Options
|
||||
# -------
|
||||
option(ENABLE_TESTING OFF)
|
||||
option(ENABLE_SAMPLE OFF)
|
||||
option(COVERAGE OFF)
|
||||
|
||||
add_subdirectory(config)
|
||||
@@ -26,20 +25,24 @@ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-default-inline")
|
||||
endif()
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
message(STATUS "Debug mode")
|
||||
else()
|
||||
message(STATUS "Release mode")
|
||||
endif()
|
||||
|
||||
if (ENABLE_TESTING)
|
||||
message("Debug mode")
|
||||
message(STATUS "Testing is enabled")
|
||||
enable_testing()
|
||||
set(CODE_COVERAGE ON)
|
||||
set(GCC_COVERAGE_LINK_FLAGS "${GCC_COVERAGE_LINK_FLAGS} -lgcov --coverage")
|
||||
add_subdirectory(tests)
|
||||
else()
|
||||
message("Release mode")
|
||||
message(STATUS "Testing is disabled")
|
||||
endif()
|
||||
|
||||
if (ENABLE_SAMPLE)
|
||||
message("Building sample")
|
||||
add_subdirectory(sample)
|
||||
endif()
|
||||
message(STATUS "Building sample")
|
||||
add_subdirectory(sample)
|
||||
|
||||
include_directories(
|
||||
${fimdlp_SOURCE_DIR}/src
|
||||
|
Reference in New Issue
Block a user