forked from Kapilarny/FuserCustomSongCreator
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
52 lines (42 loc) · 2.23 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.5)
project(Fuser_CustomSongCreator LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
file(GLOB SRCS
${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/uasset.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/fuser_asset.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/core_types.h
${CMAKE_CURRENT_SOURCE_DIR}/src/serialize.h
${CMAKE_CURRENT_SOURCE_DIR}/src/sha1.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/hmx_midifile.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/custom_song_creator.cpp
${CMAKE_CURRENT_SOURCE_DIR}/moggcrypt/aes.c
${CMAKE_CURRENT_SOURCE_DIR}/moggcrypt/CCallbacks.cpp
${CMAKE_CURRENT_SOURCE_DIR}/moggcrypt/OggMap.cpp
${CMAKE_CURRENT_SOURCE_DIR}/moggcrypt/oggvorbis.cpp
${CMAKE_CURRENT_SOURCE_DIR}/moggcrypt/VorbisEncrypter.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_demo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_draw.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_impl_win32.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_impl_dx11.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_widgets.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_tables.cpp
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_stdlib.cpp
)
add_executable( ${PROJECT_NAME} WIN32 ${SRCS} )
target_include_directories(Fuser_CustomSongCreator PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/")
target_include_directories(Fuser_CustomSongCreator PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/imgui/")
target_include_directories(Fuser_CustomSongCreator PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src/")
target_link_libraries(
Fuser_CustomSongCreator
"d3d11.lib"
"${CMAKE_CURRENT_SOURCE_DIR}/bass/bass.lib"
)
set_property(TARGET Fuser_CustomSongCreator PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
set_source_files_properties(${SRCS} PROPERTIES LANGUAGE CXX)
add_custom_command(TARGET Fuser_CustomSongCreator POST_BUILD # Adds a post-build event to MyTest
COMMAND ${CMAKE_COMMAND} -E copy_if_different # which executes "cmake - E copy_if_different..."
"${CMAKE_CURRENT_SOURCE_DIR}/bass/bass.dll" # <--this is in-file
$<TARGET_FILE_DIR:Fuser_CustomSongCreator>) # <--this is out-file path