Skip to content

Commit

Permalink
Cmake change to build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hbe72 committed May 4, 2018
1 parent ffc7cd4 commit d597af2
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@ foreach(source ${sample_dsp_sources})
add_executable(${target} ${source})
add_test("${target}" "${target}")
target_link_libraries(${target}
Cnl::Cnl
${GTEST_LIBRARY}
${GTEST_MAIN_LIBRARY}
general pthread)
Cnl::Cnl
${GTEST_LIBRARY}
${GTEST_MAIN_LIBRARY})

if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
else ()
target_link_libraries(${target}
general pthread)
endif ()

target_include_directories(
${target} PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
Expand Down

0 comments on commit d597af2

Please sign in to comment.