File: Custom.cmake

package info (click to toggle)
csound 1%3A6.14.0~dfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 36,860 kB
  • sloc: ansic: 191,048; cpp: 28,314; python: 3,277; yacc: 1,253; perl: 635; lisp: 411; sh: 407; tcl: 341; lex: 217; makefile: 136
file content (28 lines) | stat: -rw-r--r-- 802 bytes parent folder | download
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


set(Python_ADDITIONAL_VERSIONS "@PYVERSION@")
#set(JAVA_MODULE_INSTALL_DIR "")
set(LUA_MODULE_INSTALL_DIR "lib/lua/5.1/")
set(EIGEN3_INCLUDE_DIR "/usr/include/")
find_library(LUAJIT_LIBRARY lua5.1)
set(LUAJIT_INCLUDE_DIR "/usr/include/lua5.1")
find_path(LUA_H_PATH lua.h ${LUAJIT_INCLUDE_DIR})
include_directories(${LUAJIT_INCLUDE_DIR})

# Enable optimizations
add_compile_options(-ftree-vectorize -ffast-math -O3 -fno-finite-math-only)
# Only in 386 or amd64 enable mtune, specified from the rules file
set(mtuneopt "@MTUNE@")
set(simdopt "@ENABLE_SIMD@")
if(mtuneopt)
    add_compile_options("-mtune=generic")
endif()
if(NOT simdopt)
    add_definitions("-DPFFFT_SIMD_DISABLE")
endif()

add_definitions(-DCS_PACKAGE_DATE=\"@DATE@\")

#set(FLTK_INCLUDE_DIR "/usr/include")
set(FLTK_SKIP_OPENGL ON)