Last active
July 16, 2017 03:00
-
-
Save SharkyRawr/f2a67daf72a04da98c1de7db55e3f048 to your computer and use it in GitHub Desktop.
uFMOD CMake support file (CMakeLists.txt)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cmake_minimum_required (VERSION 3.0) | |
| project (ufmod) | |
| add_custom_command(OUTPUT ufmod.o | |
| COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && nasm -O4 -t -fwin32 -df48000 -dSTRONG -dUNICODE -dNORMAL -dOBJ -I ${CMAKE_CURRENT_SOURCE_DIR}/ufmod -dWINMM -o ${CMAKE_CURRENT_BINARY_DIR}/ufmod.o nasm.asm | |
| ) | |
| add_library(ufmod STATIC ufmod.o) | |
| SET_SOURCE_FILES_PROPERTIES( | |
| ufmod.o | |
| PROPERTIES | |
| EXTERNAL_OBJECT true | |
| GENERATED true | |
| ) | |
| SET_TARGET_PROPERTIES( | |
| ufmod | |
| PROPERTIES | |
| LINKER_LANGUAGE C | |
| ) | |
| target_include_directories (ufmod PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment