| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- cmake_minimum_required(VERSION 3.1)
- project(par)
- find_package(PkgConfig REQUIRED)
- pkg_search_module(CURL REQUIRED libcurl)
- set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=c11 -Wall")
- set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++17 -Wvla -Wall")
- include_directories(.. . ${CURL_INCLUDE_DIRS})
- add_executable(
- test_strings
- console-colors.c
- test_strings.cpp)
- target_link_libraries(test_strings)
- add_executable(
- test_msquares
- test_msquares.c
- lz4.cpp
- lodepng.c
- sds.c
- whereami.c)
- target_link_libraries(test_msquares ${CURL_LIBRARIES})
- add_executable(
- test_bluenoise
- test_bluenoise.c
- lz4.cpp
- lodepng.c
- sds.c
- whereami.c)
- target_link_libraries(test_bluenoise ${CURL_LIBRARIES})
- add_executable(
- test_cpp
- test_cpp.cpp
- lz4.cpp
- lodepng.c
- sds.c
- whereami.c)
- target_link_libraries(test_cpp ${CURL_LIBRARIES})
- add_executable(
- test_c
- test_c.c
- lz4.cpp
- lodepng.c
- sds.c
- whereami.c)
- target_link_libraries(test_c ${CURL_LIBRARIES})
- add_executable(
- test_linkage
- test_linkage.cpp
- test_linkage.c
- lz4.cpp
- lodepng.c
- sds.c
- whereami.c)
- target_link_libraries(test_linkage ${CURL_LIBRARIES})
- add_executable(
- test_shapes
- test_shapes.c
- console-colors.c)
- target_link_libraries(test_shapes m)
- add_executable(
- test_bubbles
- test_bubbles.c
- console-colors.c)
- target_link_libraries(test_bubbles m)
- add_executable(
- test_filecache
- test_filecache.c
- console-colors.c)
- add_executable(
- test_filecache_lz4
- test_filecache_lz4.c
- console-colors.c)
- add_executable(
- test_sprune
- test_sprune.c
- console-colors.c)
- add_executable(
- test_octasphere
- test_octasphere.cpp
- console-colors.c)
|