2021-04-19 10:46:15 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
|
|
|
project(libfixmath LANGUAGES CXX C)
|
|
|
|
|
2022-02-24 21:36:40 +01:00
|
|
|
set(CMAKE_C_STANDARD 99)
|
2021-04-19 10:46:15 +02:00
|
|
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
2022-02-24 21:39:31 +01:00
|
|
|
set(CMAKE_C_FLAGS "-Wall -pedantic -Wextra")
|
2021-04-19 10:46:15 +02:00
|
|
|
|
2021-04-29 08:40:06 +02:00
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
2021-04-19 10:46:15 +02:00
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
2022-02-24 21:39:31 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "-Wall -pedantic -Wextra")
|
2021-04-29 08:40:06 +02:00
|
|
|
|
2022-02-24 21:35:48 +01:00
|
|
|
add_subdirectory(libfixmath)
|
|
|
|
#include(tests/tests.cmake)
|
2021-04-19 10:46:15 +02:00
|
|
|
|
2022-02-24 21:38:56 +01:00
|
|
|
#file(GLOB fixsingen-srcs fixsingen/*.c)
|
|
|
|
#file(GLOB fixtest-srcs fixtest/*.c fixtest/*.h)
|
2021-04-29 08:40:06 +02:00
|
|
|
|
2022-02-24 21:38:56 +01:00
|
|
|
#add_executable(fixtest ${fixtest-srcs})
|
|
|
|
#target_link_libraries(fixtest PRIVATE libfixmath m)
|
|
|
|
#target_include_directories(fixtest PRIVATE ${CMAKE_SOURCE_DIR})
|
2021-04-29 08:40:06 +02:00
|
|
|
|
2022-02-24 21:38:56 +01:00
|
|
|
#add_executable(fixsingen ${fixsingen-srcs})
|
|
|
|
#target_link_libraries(fixsingen PRIVATE libfixmath m)
|
|
|
|
#target_include_directories(fixsingen PRIVATE ${CMAKE_SOURCE_DIR})
|