made uniform indentation
@@ -10,6 +10,8 @@ configure_file (
"${PROJECT_SOURCE_DIR}/inc/cmake_config.hpp"
)
+set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
+
# Detect OS
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
@@ -72,13 +74,13 @@ elseif (WINDOWS)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd") # also requires boost with runtime-link=static
endif ()
-
# Build type
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif ()
-message(STATUS "Build type is ${CMAKE_BUILD_TYPE}")
+message(STATUS "Build type is ${CMAKE_BUILD_TYPE}")
+find_package (Threads REQUIRED)
# flags specific to unix
if (UNIX)
@@ -88,8 +90,6 @@ if (UNIX)
include_directories (${Boost_INCLUDE_DIR} )
endif ()
-find_package (Threads REQUIRED)
-
# Application modules
add_library (mod_sqlite3 STATIC lib/sqlite/sqlite3.c)
@@ -185,7 +185,6 @@ add_dependencies (mod_vcf mod_odb) # works even without this if we add mod_vcf a
target_link_libraries (mod_vcf ${THIRD_PARTY_LIBRARIES} mod_odb)
-
# Libraries to link with executables
if (LINUX)
set (LIBRARIES_TO_LINK
@@ -246,8 +245,6 @@ set (ALL_TESTS
test/vcf/test_utils.hpp
)
-set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
-
add_executable (test_validator_v41 test/main_test.cpp ${V41_TESTS})
target_link_libraries (test_validator_v41 ${LIBRARIES_TO_LINK})
enable_testing ()
