-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
32 lines (26 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cmake_minimum_required(VERSION 3.16)
project(MorseCodeKeyer LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x)
FetchContent_MakeAvailable(SFML)
add_executable(MorseCodeKeyer
${CMAKE_SOURCE_DIR}/src/main.cpp
${CMAKE_SOURCE_DIR}/include/textbox.h
${CMAKE_SOURCE_DIR}/src/textbox.cpp
${CMAKE_SOURCE_DIR}/include/render.h
${CMAKE_SOURCE_DIR}/include/setup.h
${CMAKE_SOURCE_DIR}/src/setup.cpp
${CMAKE_SOURCE_DIR}/include/button.h
${CMAKE_SOURCE_DIR}/src/render.cpp
)
target_link_libraries(MorseCodeKeyer PRIVATE sfml-graphics sfml-audio)
target_compile_features(MorseCodeKeyer PRIVATE cxx_std_17)
# Include OpenAL
include_directories(${OPENAL_INCLUDE_DIR})
target_link_libraries(MorseCodeKeyer PRIVATE ${OPENAL_LIBRARY})
include_directories(${OPENGL_INCLUDE_DIR})
target_link_libraries(MorseCodeKeyer PRIVATE ${OPENGL_LIBRARY})